process.env.NODE_ENV = process.env.NODE_ENV || 'production';

const configureMongoose = require('./config/mongoose');
const configureExpress = require('./config/express');
const configurePassport = require('./config/passport');

const db = configureMongoose();
const passport = configurePassport();
const app = configureExpress();

app.listen(3000);
console.log('Server on http://localhost:3000');
module.exports = app;